import React from 'react'
import classNames from 'classnames'
import './index.scss';

export default (props) => {
  let { type, active, className, ...another } = props;
  let classname = classNames(
      'icon',
      className,
      type ? 'icon-'+type : '',
      active ? 'active' : ''
  );
  return <i className={classname} {...another}></i>;
};

